package compile;

/**
 * @author huis
 */
public class Answer {
    // 1、状态码{成功：0，编译出错：1，运行出错：2}
    private ExitCode exitCode;
    // 2、编译出错的提示信息
    private String reason;
    // 3、标准输出
    private String stdout;
    // 4、标准错误
    private String stderr;

    public ExitCode getExitCode() {
        return exitCode;
    }

    public void setExitCode(ExitCode exitCode) {
        this.exitCode = exitCode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getStdout() {
        return stdout;
    }

    public void setStdout(String stdout) {
        this.stdout = stdout;
    }

    public String getStderr() {
        return stderr;
    }

    public void setStderr(String stderr) {
        this.stderr = stderr;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "exitCode=" + exitCode +
                ", reason='" + reason + '\'' +
                ", stdout='" + stdout + '\'' +
                ", stderr='" + stderr + '\'' +
                '}';
    }
}
